package jpa.entitys.promis.construction;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;

import jpa.entitys.common.CommonEntity;


/**
 * The persistent class for the VARIATION_ORDER_INSTALLMENT database table.
 * 
 */
@Entity
@Table(name="VARIATION_ORDER_INSTALLMENT")
@NamedQueries({
    @NamedQuery(name = "VariationOrderInstallment.findAll", query = " SELECT c FROM VariationOrderInstallment c "),
    @NamedQuery(name = "VariationOrderInstallment.findById", query = " SELECT c FROM VariationOrderInstallment c WHERE c.id = :Id ")
})
public class VariationOrderInstallment extends CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private VariationOrderInstallmentPK id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="BUILDING_PHASE")
	private String buildingPhase;

	@Column(name="CONTRACT_AMOUNT")
	private BigDecimal contractAmount;

	@Column(name="CONTRACT_NET_AMOUNT")
	private BigDecimal contractNetAmount;

	@Column(name="CONTRACT_NO")
	private BigDecimal contractNo;

	@Column(name="CONTRACT_SERIES")
	private String contractSeries;

	@Column(name="CONTRACT_TYPE")
	private String contractType;

	@Column(name="CREATED_BY")
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	private String description;

	@Column(name="FEE_AMOUNT")
	private BigDecimal feeAmount;

	@Column(name="FEE_NET_AMOUNT")
	private BigDecimal feeNetAmount;

	@Column(name="INSTALLMENT_AMOUNT")
	private BigDecimal installmentAmount;

	@Column(name="INSTALLMENT_NET_AMOUNT")
	private BigDecimal installmentNetAmount;

	@Column(name="INSTALLMENT_PCT")
	private BigDecimal installmentPct;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="NEW_ITEM")
	private String newItem;

	@Column(name="REMAIN_AMOUNT")
	private BigDecimal remainAmount;

	@Column(name="REMAIN_NET_AMOUNT")
	private BigDecimal remainNetAmount;

	@Column(name="REMAIN_PCT")
	private BigDecimal remainPct;

	@Column(name="SYNC_CREATEDBY")
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY")
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO")
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSTAGING")
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC")
	private String syncIssync;

	@Column(name="SYNC_PK_ID")
	private String syncPkId;

	@Column(name="SYNC_UPDATEDBY")
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="UNIT_NUMBER")
	private String unitNumber;

	@Column(name="ZONE_CODE")
	private String zoneCode;

    public VariationOrderInstallment() {
    }

	public VariationOrderInstallmentPK getId() {
		return this.id;
	}

	public void setId(VariationOrderInstallmentPK id) {
		this.id = id;
	}
	
	public String getBuildingPhase() {
		return this.buildingPhase;
	}

	public void setBuildingPhase(String buildingPhase) {
		this.buildingPhase = buildingPhase;
	}

	public BigDecimal getContractAmount() {
		return this.contractAmount;
	}

	public void setContractAmount(BigDecimal contractAmount) {
		this.contractAmount = contractAmount;
	}

	public BigDecimal getContractNetAmount() {
		return this.contractNetAmount;
	}

	public void setContractNetAmount(BigDecimal contractNetAmount) {
		this.contractNetAmount = contractNetAmount;
	}

	public BigDecimal getContractNo() {
		return this.contractNo;
	}

	public void setContractNo(BigDecimal contractNo) {
		this.contractNo = contractNo;
	}

	public String getContractSeries() {
		return this.contractSeries;
	}

	public void setContractSeries(String contractSeries) {
		this.contractSeries = contractSeries;
	}

	public String getContractType() {
		return this.contractType;
	}

	public void setContractType(String contractType) {
		this.contractType = contractType;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public BigDecimal getFeeAmount() {
		return this.feeAmount;
	}

	public void setFeeAmount(BigDecimal feeAmount) {
		this.feeAmount = feeAmount;
	}

	public BigDecimal getFeeNetAmount() {
		return this.feeNetAmount;
	}

	public void setFeeNetAmount(BigDecimal feeNetAmount) {
		this.feeNetAmount = feeNetAmount;
	}

	public BigDecimal getInstallmentAmount() {
		return this.installmentAmount;
	}

	public void setInstallmentAmount(BigDecimal installmentAmount) {
		this.installmentAmount = installmentAmount;
	}

	public BigDecimal getInstallmentNetAmount() {
		return this.installmentNetAmount;
	}

	public void setInstallmentNetAmount(BigDecimal installmentNetAmount) {
		this.installmentNetAmount = installmentNetAmount;
	}

	public BigDecimal getInstallmentPct() {
		return this.installmentPct;
	}

	public void setInstallmentPct(BigDecimal installmentPct) {
		this.installmentPct = installmentPct;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public String getNewItem() {
		return this.newItem;
	}

	public void setNewItem(String newItem) {
		this.newItem = newItem;
	}

	public BigDecimal getRemainAmount() {
		return this.remainAmount;
	}

	public void setRemainAmount(BigDecimal remainAmount) {
		this.remainAmount = remainAmount;
	}

	public BigDecimal getRemainNetAmount() {
		return this.remainNetAmount;
	}

	public void setRemainNetAmount(BigDecimal remainNetAmount) {
		this.remainNetAmount = remainNetAmount;
	}

	public BigDecimal getRemainPct() {
		return this.remainPct;
	}

	public void setRemainPct(BigDecimal remainPct) {
		this.remainPct = remainPct;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIsstaging() {
		return this.syncIsstaging;
	}

	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncPkId() {
		return this.syncPkId;
	}

	public void setSyncPkId(String syncPkId) {
		this.syncPkId = syncPkId;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public String getZoneCode() {
		return this.zoneCode;
	}

	public void setZoneCode(String zoneCode) {
		this.zoneCode = zoneCode;
	}

}